package com.okami.controller;

import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author: TanJingyu
 * @create: 2021-01-05 11:12
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping
    public String test() {
        return "test....";
    }

    @GetMapping("/code")
    public String code() {
        return "3432423432";
    }

    @GetMapping("/{tiantian}")
    public String code(@PathVariable String tiantian) {
        return tiantian;
    }
}
